window.onload=function () {
    var ba=document.getElementById('back');
    var ba1=document.getElementById('back1');
    var pp=document.getElementById('p2');
    var but=document.getElementById('ddd');
    var im1=document.getElementById('img2');
    var im2=document.getElementById('img');
    var im=document.getElementById('aaa');
    var p=document.getElementById('p3');
    var oNum = document.getElementById("loginname");

   function check() {
       if (ba.style.display="block"){
           ba.onclick=function () {
               ba.style.display="none";
               ba1.style.display="block";
           }
       }
       if ( ba1.style.display="none"){
           pp.onclick=ba1.onclick=function () {
               ba.style.display="block";
               ba1.style.display="none";

           }
       }
   }
    // oNum.onmouseout=function () {
    //     // if(!oNum.test(/^1\d{10}$/)) {
    //     //     alert("手机号码不正确")
    //     // }
    //     alert('111');
    // }
   but.onmouseover=function () {
       but.style.background="#40a9ff"
   }
   but.onmouseout=function () {
       but.style.background="";
   }

   im.onmouseover=function () {
       im2.style.display="block";
       im1.style.display="none";
       p.style.color="blue";
   }
    im.onmouseout=function () {
        im2.style.display="none";
        im1.style.display="block";
        p.style.color="";
    }
   check();
}

